package com.cskaoyan.javase.overload._2exercise;

/**
 * 小练习
 * 1. 使用方法重载，输出各种数据类型
 * 2. 实现一个功能更强大的计算器
 *
 * @since 11:35
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    public static void main(String[] args) {
        printEle("abc");
        printEle(12);
        printEle(12L);
        printEle(12.0);
    }

    public static void printEle(byte a) {
        System.out.println(a);
    }

    public static void printEle(short a) {
        System.out.println(a);
    }

    public static void printEle(int a) {
        System.out.println(a);
    }

    public static void printEle(long a) {
        System.out.println(a);
    }

    public static void printEle(float a) {
        System.out.println(a);
    }

    public static void printEle(double a) {
        System.out.println(a);
    }

    public static void printEle(char a) {
        System.out.println(a);
    }

    public static void printEle(boolean a) {
        System.out.println(a);
    }

    public static void printEle(String a) {
        System.out.println(a);
    }
}
